const {exec} =require('node:child_process')
const util = require('node:util')
const execPromise = util.promisify(exec)
execPromise('node -v').then(result => {
  console.log(result.stdout)
}).catch(err => {
  console.log(err)
})